import csv

def dict2csv(dict):
    with open('output.csv', 'a+b') as f:
        w = csv.writer(f)
        w.writerows(dict.items())

def list2csv(li):
    with open('output.csv', 'a+b') as f:
        w = csv.writer(f)
        w.writerow(li)